package service;

import dao.ClassDao;
import dao.StudentDao;
import entity.AClass;
import entity.PageBean;
import factory.DaoFactory;

import java.util.List;

public class ClassServiceImpl implements ClassService {
    private ClassDao classDao;

    public ClassServiceImpl() {
        classDao = DaoFactory.getClassDao();
    }
    @Override
    public List<AClass> classShowService(PageBean pageBean) {
        return classDao.classShow(pageBean);
    }

    @Override
    public int classAddService(AClass aClass) {
       return classDao.classAdd(aClass);
    }

    @Override
    public int classDeleteService(String[] className) {
        return classDao.classDelete(className);
    }

    @Override
    public int classModifyService(AClass aClass) {
        return classDao.classModify(aClass);
    }

    @Override
    public AClass classFindService(String className) {
        return classDao.classFind(className);
    }
}
